package com.sanbi.erp.db.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.sanbi.erp.db.dao.StoreProductMapper;
import com.sanbi.erp.db.domain.StoreProduct;

import java.util.List;

@Service
public class StoreProductService{

    @Resource
    private StoreProductMapper storeProductMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return storeProductMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(StoreProduct record) {
        return storeProductMapper.insert(record);
    }

    
    public int insertSelective(StoreProduct record) {
        return storeProductMapper.insertSelective(record);
    }

    
    public StoreProduct selectByPrimaryKey(Integer id) {
        return storeProductMapper.selectByPrimaryKey(id);
    }


    public List<StoreProduct> selectByPrimaryKeyByList(Integer id) {
        return storeProductMapper.selectByPrimaryKeyByList(id);
    }

    
    public int updateByPrimaryKeySelective(StoreProduct record) {
        return storeProductMapper.updateByPrimaryKeySelective(record);
    }

    /**
     * 批量修改
     * @param list
     * @return
     */
    public int updateByPrimaryKeySelectiveList(List<StoreProduct> list) {
        return storeProductMapper.updateByPrimaryKeySelectiveList(list);
    }
    
    public int updateByPrimaryKey(StoreProduct record) {
        return storeProductMapper.updateByPrimaryKey(record);
    }


    /**
     * 批量添加
     * @param list
     * @return
     */
    public int insertSelectiveList(List<StoreProduct> list) {
        return storeProductMapper.insertSelectiveList(list);
    }

}
